package com.zys.principles.demo4.emp2;

/**
 * B类重写了A类方法
 */
public class Client {
    public static void main(String[] args) {
        A a = new A();
        System.out.println("11-3 = " + a.func1(11,3) );
        System.out.println("2-9 = " + a.func1(2,9) );

        System.out.println("--------------------");

        B b = new B();
        System.out.println("11+3 = " + b.func1(11,3) );
        System.out.println("2-9 = " + b.func3(2,9) );
    }
}
